using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;

namespace CustomControls
{
    namespace ContextMenuScope
    {
        /// <summary>
        ///     Used as a parameter for the TypeConverter class so that
        ///     in the designer view, only controls of type ContextMenu can be
        ///     used for selection.
        /// </summary>
        public class ContextMenuIDConvertor : ControlIDConverter
        {
            protected override bool FilterControl(System.Web.UI.Control control)
            {
                if ( control is ContextMenu)
                    return true;

                return false;
            }
        }
    }
}
